import request from '@/utils/request'

// 查询生产厂家列表
export function listPost(query) {
  return request({
    url: '/ypgl/ypxx/list',
    method: 'get',
    params: query
  })
}


export function addPost(data) {
  return request({
    url: '/ypgl/ypxx',
    method: 'post',
    data: data
  })
}

export function getPost(ypxxId) {
  return request({
    url: '/ypgl/ypxx/' + ypxxId,
    method: 'get'
  })
}
export function updatePost(data) {
  return request({
    url: '/ypgl/ypxx',
    method: 'put',
    data: data
  })
}

export function delPost(ypxxId) {
  return request({
    url: '/ypgl/ypxx/' + ypxxId,
    method: 'delete'
  })
}
